package ${bussPackage}.service.${entityPackage}.impl;


import java.io.Serializable;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.aspire.goodscenter.framework.CrudInterface.CrudServiceImpl;
import ${bussPackage}.mapper.${entityPackage}.${className}Mapper;
import ${bussPackage}.service.${entityPackage}.${className}Service;
import ${bussPackage}.domain.${entityPackage}.${className};

/**
 * 
 * <br>
 * <b>功能：</b>${className}ServiceImpl<br>
 */
@Service
public class ${className}ServiceImpl extends CrudServiceImpl<${className}> implements ${className}Service<${className}> {

	private final static Logger logger = LogManager.getLogger(${className}Service.class);
	
	private ${className}Mapper<${className}> ${lowerName}Mapper;

	@Autowired
	public ${className}ServiceImpl(${className}Mapper<${className}> ${lowerName}Mapper) {
		super(${lowerName}Mapper);
		this.${lowerName}Mapper = ${lowerName}Mapper;
	}

	@Override
	public ${className} getById(HttpServletRequest request) throws Exception {
		String id = request.getParameter("id");
        ${className}    ${lowerName} = ${lowerName}Mapper.selectById(Long.parseLong(id));
        return ${lowerName};
	}


	@Override
	public void modify(HttpServletRequest request) {
		
	}

	@Override
	public void remove(HttpServletRequest request) throws Exception {
		
	}

	@Override
	public void create(HttpServletRequest request) throws Exception {
		
	}
	

}
